package com.github.data_manage.domain.vo

import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.annotation.JsonIgnore
import java.time.LocalDate

data class TimeDataVo<T>(
    @JsonFormat(pattern = "yyyy-MM")
    val time: LocalDate,
    val value: T
)


data class StringTimeDataVo<T>(
    val time: String,
    @JsonIgnore
    val date: LocalDate,
    val value: T
)

data class IntTimeDataVo<T>(
    val time: Int,
    val value: T
)